package com.dlsy.ygj.dao.vindicateData.impl;

import java.util.List;

import net.taobaoge.common.framework.dao.impl.BaseDAOImpl;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

import com.dlsy.ygj.dao.vindicateData.IShelfLifeInfoDAO;
import com.dlsy.ygj.entity.ShelfLifeInfo;

public class ShelfLifeInfoDAO extends BaseDAOImpl<ShelfLifeInfo> implements
		IShelfLifeInfoDAO {
	private ShelfLifeInfo shelfLifeInfo;

	public ShelfLifeInfo getShelfLifeInfo() {
		return shelfLifeInfo;
	}

	public void setShelfLifeInfo(ShelfLifeInfo shelfLifeInfo) {
		this.shelfLifeInfo = shelfLifeInfo;
	}

	public List<ShelfLifeInfo> findShelfLifeByName(String shelfLifeName,int strorefrontId) {

		return this
				.findByHql(
						"From ShelfLifeInfo S where S.shelfLifeName=? and S.strorefrontId=?",
						shelfLifeName,strorefrontId);

	}
}
